$OpenBSD: patch-CMakeLists_txt,v 1.3 2017/03/08 10:51:08 espie Exp $
also find -lfreetype2 during linking
--- CMakeLists.txt.orig	Sun Aug 30 13:56:26 2015
+++ CMakeLists.txt	Tue Mar  7 20:43:09 2017
@@ -69,20 +69,16 @@ if (UNIX)
         add_definitions("-DHAVE_SIGNAL_H")
     endif ()
 
-    find_file (EXEC_INFO execinfo.h)
-    if (EXEC_INFO)
-        set(VALAFLAGS ${VALAFLAGS} -D HAVE_EXECINFO_H)
-    endif ()
 endif ()
 
 find_library (X11 X11)
 if (X11)
     # Pass /usr/X11R6/include for OpenBSD
     find_file (SCRNSAVER X11/extensions/scrnsaver.h /usr/X11R6/include)
-    find_library (XSS Xss /usr/lib/X11R6/lib)
+    find_library (XSS Xss /usr/X11R6/lib)
     if (SCRNSAVER AND XSS)
         add_definitions("-DHAVE_X11_EXTENSIONS_SCRNSAVER_H")
-        set(OPTS_LIBRARIES "${OPTS_LIBRARIES};${XSS};${X11}")
+        set(OPTS_LIBRARIES "${OPTS_LIBRARIES};${XSS};${X11};-L${X11BASE}/lib")
     endif ()
 endif ()
 
